package com.darksides.lenditweb.client.service;

import com.darksides.lenditweb.client.bean.UserBean;
import com.darksides.lenditweb.shared.exceptions.user.EmailAlreadyUsedException;
import com.darksides.lenditweb.shared.exceptions.user.UserNotFoundException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * @author Benjamin Barbier
 *
 */
@RemoteServiceRelativePath( "users.rpc" )
public interface UserService extends RemoteService {

	UserBean create( UserBean user ) throws EmailAlreadyUsedException;

	UserBean get( String userId ) throws UserNotFoundException;
	
	UserBean delete( String userId ) throws UserNotFoundException;

}
